from django.contrib import admin

# Register your models here.
from account.models import Account, Role, Resource


# admin.register(Account)


@admin.register(Account)
class AccountAdmin(admin.ModelAdmin):
    """
    账号后台管理
    """
    list_display = ('username',)  # 展示
    list_filter = ('username',)
    list_per_page = 20  # 分页
    search_fields = ('username',)

@admin.register(Role)
class Roledmin(admin.ModelAdmin):
    """
    账号后台管理
    """
    list_display = ('name',)  # 展示
    list_filter = ('name',)
    list_per_page = 20  # 分页
    search_fields = ('name',)

@admin.register(Resource)
class Resourcedmin(admin.ModelAdmin):
    """
    账号后台管理
    """
    list_display = ('name',)  # 展示
    list_filter = ('name',)
    list_per_page = 20  # 分页
    search_fields = ('name',)